<?php
/**
 * this scripts is a part of plantform,inspiring people to use
 * 
 * @package Framework
 * @final Version
 * @version $Id: Version.php,v 1.0 2008/06/30 09:53:40 hongjianjia Exp $
 * @author Jiania J Hung | 洪建家 <jiania@gmail.com>
 * @copyright http://www.jiania.com
 */

final class Version
{
	const VERSION='1.0';
	
	static function compareVersion($version) 
	{
        return version_compare($version, self::VERSION);
    }
	
	static function comparePHP()
	{
	    if (version_compare(phpversion(), '5.2.0', '<') == true)
	    { 
	    die('System needs PHP 5.2.x or higher to run. You are currently running PHP ' . PHP_VERSION . '.');
	    }
    }
     

}
